<div class="container">
    <form nz-form [formGroup]="validateForm" (ngSubmit)="handleSubmit()">
        <nz-comment>
            <nz-avatar id="avatar" nz-comment-avatar
                       [nzIcon]="!user.mediumAvatar ? 'user' : null"
                       [nzSrc]="user.mediumAvatar ? user.mediumAvatar : null" [nzSize]="50"></nz-avatar>
            <nz-comment-content>
                <nz-form-item id="form-textarea">
                    <textarea formControlName="content" nz-input nzSize="large" [placeholder]="placeHolder"></textarea>
                </nz-form-item>
                <div id="controls-group">
                    <button type="button" nz-button nzType="default" nzShape="circle" class="attachment-control">
                        <i nz-icon nzTheme="outline" nzType="file-image"></i>
                    </button>
                    <button type="button" nz-button nzType="default" nzShape="circle" class="attachment-control">
                        <i nz-icon nzTheme="outline" nzType="smile"></i>
                    </button>
                    <button type="submit" nz-button nzType="primary" nzShape="round" nzSize="default"
                            class="publish-control"
                            [nzLoading]="isSending"
                            [disabled]="isSending
                            || !validateForm.controls.content.value
                            || validateForm.controls.content.value.length <= 0">
                        发布
                    </button>
                </div>
            </nz-comment-content>
        </nz-comment>
    </form>
</div>
